package com.management.vtribe.config;

public class Tool {
    public int[] toIntArray(String str){
        String[] arr = str.split(",");
        int[] ints = new int[arr.length];
        for(int i=0;i<arr.length;i++){
            try{
                ints[i] = Integer.parseInt(arr[i]);
            }catch (Exception e){
                e.printStackTrace();
            }
        }
        return ints;
    }
}
